package com.example.commonmark;

import ohos.aafwk.ability.AbilityPackage;
import org.commonmark.internal.util.Html5Entities;
import org.commonmark.internal.util.Html5EntitiesUtil;

public class MyApplication extends AbilityPackage {
    @Override
    public void onInitialize() {
        super.onInitialize();
        if (Html5Entities.NAMED_CHARACTER_REFERENCES == null) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    Html5EntitiesUtil.initEntities();
                }
            }).start();
        }
    }
}
